<?php
// +----------------------------------------------------------------------
// | Amicool-MVC [ Dynamic Flexible Agile Devlepment]
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2020 http://amicool.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 郡笑笙 <iamzjs@126.com>
// +----------------------------------------------------------------------
class BaseController extends Controller{
	function __Construct(){
		if(!isset($_SESSION)) session_start();
		if(!isset($_SESSION['user'])){
			redirect('c=login&m=form', '无权限，请登录！');
			exit();
		}
		parent::__Construct();		
	}
}
?>